<?php if($loggedin==0){ ?>
<ul class="top-nav">
    <li><a href="<?php echo $this->Html->url(array('controller' => 'pages', 'action' => 'register', $this->params['prefix'] => false)); ?>">Register</a></li>
    <li><a href="<?php echo $this->Html->url(array('controller' => 'users', 'action' => 'login', $this->params['prefix'] => false)); ?>">Login</a></li>
</ul>
<?php }else{ ?>
<ul class="top-nav">
    <li><a href="<?php echo $this->Html->url(array('controller' => 'users', 'action' => 'logout', $this->params['prefix'] => false)); ?>">Logout</a></li>
</ul>
<?php } ?>

